/*
 * @Author: Wangtao
 * @Date: 2020-10-29 14:26:48
 * @LastEditors: Wangtao
 * @LastEditTime: 2021-01-13 10:41:16
 */

import { NodeDataObj } from '../types'

const defaultData: {[propName: string]: NodeDataObj} = {
  'im-node-start': {
    name: '开始节点'
  },
  'im-node-date': {
    name: '时间条件',
    default: ''
  },
  'im-node-transfer': {
    name: '转人工',
    peerId: '',
    welcomeMessageObj: {
      type: 'welcomeMessage',
      textType: 'ordinary',
      content: '正在为您接入人工客服，请稍后'
    },
    tipsObj: {
      type: 'excess',
      textType: 'ordinary',
      content: '当前人工座席繁忙，正在为您接入中，请您耐心等待'
    },
    appeaseObj: {
      type: 'overtime',
      textType: 'ordinary',
      content: '已经收到您的消息，请您耐心等待'
    },
    queueTips: '您当前排在第{num}位，请耐心等待～',
    isShowCancelQueue: false
  },
  'im-node-play': {
    name: '播放语音',
    voice: '',
    replayTimes: 2,
    replayInterval: 3,
    playType: 'voiceLibrary'
  },
  'im-node-menu': {
    name: '引导菜单',
    guideContent: '',
    nodeId: ''
  },
  'im-node-leave': {
    name: '留言节点',
    leaveMessageObj: {
      content: '',
      textType: 'ordinary',
      type: 'richText'
    },
    visualPeers: []
  },
  'im-node-robot': {
    name: '机器人节点',
    robotId: '',
    isShowTransfer: true,
    default: ''
  },
  'im-node-branch': {
    name: '分支路由节点',
    default: ''
  }
}

export default defaultData
